#ifndef VIEWPANEL_H
#define VIEWPANEL_H

#include <QWidget>
#include <vector>
#include <map>
using namespace std;
class GLPanel;
class Model;
class HEDController;
#include "edumygui.h"


namespace Ui {
    class ViewPanel;
}

class ViewPanel : public QWidget
{
    Q_OBJECT

public:
    explicit ViewPanel(QWidget *parent = 0);
    ~ViewPanel();
    void setMyUI( EduMyGUI* _ui );
    void setUserOperation( int _oper, Qt::CursorShape _cursor );
    void setTopolViewFlag( int _type, bool _isVisible );
    void setGridSnapData( bool _isVisible, bool _isSnapOn, double _dx, double _dy );
    bool getGridSnapInfo( double& _dx, double& _dy );
    bool hasUndoing();
    bool hasRedoing();
    Model* getModel();
//*****************************************
	void selectRegion( vector<int> _numFace );
  void getArea( double& _area, int _numFace );
	void getCentroide( double& _xc, double& _yc, int _numFace );
  void getMomentOfInertia( double& _Ixx, double& _Iyy, double& _Ixy, int _numFace );
  HEDController* getHedController();

private:
    Ui::ViewPanel *ui;
    GLPanel* c;
};

#endif // VIEWPANEL_H
